-- GENERATED SPELL FOR [Blood Steward of Kirtonos] --


function spell0_14861(pUnit, Event) --@Curse of Impotence,n/a--
pUnit:FullCastSpellOnTarget(22371,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14861', 563, 1)
end

function spell1_14861(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(12493,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14861', 599, 1)
end

function spell2_14861(pUnit, Event) --@Paralyzing Poison,n/a--
pUnit:FullCastSpellOnTarget(3609,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14861', 8255, 1)
end

function Sorts_14861(pUnit, Event)
local choix_sorts_14861 = math.random(0, 2)
if choix_sorts_14861 == 0 then
pUnit:RegisterEvent('spell0_14861', 1, 1)
end
if choix_sorts_14861 == 1 then
pUnit:RegisterEvent('spell1_14861', 1, 1)
end
if choix_sorts_14861 == 2 then
pUnit:RegisterEvent('spell2_14861', 1, 1)
end
end

function mob14861_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14861', math.random(1500, 3000), 1)
end

function mob14861_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14861_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14861_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14861, 1, 'mob14861_Action')
RegisterUnitEvent(14861, 2, 'mob14861_Leave')
RegisterUnitEvent(14861, 3, 'mob14861_Kill')
RegisterUnitEvent(14861, 4, 'mob14861_Die')
